import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    routerCity:{}
  },
  getters: {
    getcity:state => state.routerCity
  },
  mutations: {
    CHANGECITYDATA(state, cityData){
      state.routerCity = cityData;
    }
  },
  actions: {
    GETCITYDATA({ commit }, cityData){
      commit('CHANGECITYDATA', cityData)
    }
  }
});
